<template>
  <div class="addSolicitOpinions-container-padding">
    <div v-if="!isHidden" class="buttonList">
      <el-button type="primary" @click="save">保存为草稿</el-button>
      <el-button type="primary" @click="submit">提交</el-button>
    </div>
    <el-form
      :model="formInline"
      class="form-inline"
      label-width="auto"
      label-position="margin-top"
    >
      <el-form-item label="意见内容：">
        <el-input
          v-model="formInline.content"
          placeholder="请输入"
          :rows="4"
          type="textarea"
          clearable
        />
      </el-form-item>
      <el-form-item label="上传征求意见表电子档：">
        <uploadFile @upload:success="handleUploadSuccess" />
      </el-form-item>
    </el-form>
  </div>
</template>

<script setup>
  import { ref } from 'vue'
  import uploadFile from './uploadFile.vue'

  const formInline = ref({
    content: '',
  })

  const handleUploadSuccess = (data) => {
    console.log(data)
  }
</script>

<style lang="scss" scoped>
  .buttonList {
    display: flex;
    justify-content: end;
    padding-bottom: 20px;
    border-bottom: 1px solid #edeff2;
    margin-bottom: 20px;
  }
</style>
